from django.urls import path,include
from goods import views

urlpatterns = [
    # 轮播图
    path('carousel/',views.CarouselView.as_view()),
    # 所有商品
    path('oneCategory/all/',views.GoodsList.as_view()),
    # 热门商品
    path('getHotProduct/', views.HotGoods.as_view()),
    # 获取商品信息
    path('onegood/',views.OneGoods.as_view()),
    # 商品图片
    path('onegood/imgs/',views.GoodsImgView.as_view()),
    # 历史
    path('onegood/history/',views.HistoryView.as_view()),
    # 收藏
    path('user/collection/',views.LikeView.as_view()),
    # 添加购物车
    path('user/cart/',views.Cart.as_view()),
    # 全选
    path("user/selection/", views.CartSelect.as_view()),
    # 分类
    path('categories/',views.CateView.as_view()),
    # 所有商品
    path('good/all/',views.GoodsAllView.as_view()),
    #
    path('good/byCategory/',views.CateGoodsView.as_view()),
    # path('search/',include('haystack'))
]

